package com.qidianit.mes.pro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.pro.Process;

public interface ProcessService {
    /**
     *
     * @return
     */
    Result<String> autoCode();
    /**
     *
     * @param process
     * @param page
     * @param size
     * @return
     */
    Result<PageInfo<Process>> selectList(Process process, int page, int size);

    /**
     *
     * @param process
     * @return
     */
    Result<Process> saveProcess(Process process);

    /**
     *
     * @param ProcessCode
     * @return
     */
    Result<Process> selectByCode(String ProcessCode);

    /**
     *
     * @param process
     * @return
     */
    Result updateById(Process process);

    /**
     *
     * @param id
     * @return
     */
    Result deleteById(Long id);

    /**
     *
     * @param ids
     * @return
     */
    Result batchDelete(Long[] ids);
}
